package com.ruoyi.car.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 客户信息管理对象 t_user
 * 
 * @author yby
 * @date 2025-09-01
 */
public class CarCustomer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户唯一ID */
    private Long id;

    /** 微信小程序用户唯一标识 */
    @Excel(name = "微信小程序用户唯一标识")
    private String openid;

    /** 用户微信昵称（脱敏） */
    @Excel(name = "用户微信昵称", readConverterExp = "脱=敏")
    private String nickname;

    /** 用户微信头像URL */
    @Excel(name = "用户微信头像URL")
    private String avatarUrl;

    /** 用户手机号（脱敏） */
    @Excel(name = "用户手机号", readConverterExp = "脱=敏")
    private String phone;

    /** 状态：0-正常，1-禁用 */
    @Excel(name = "状态：0-正常，1-禁用")
    private Long userStatus;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setOpenid(String openid) 
    {
        this.openid = openid;
    }

    public String getOpenid() 
    {
        return openid;
    }

    public void setNickname(String nickname) 
    {
        this.nickname = nickname;
    }

    public String getNickname() 
    {
        return nickname;
    }

    public void setAvatarUrl(String avatarUrl) 
    {
        this.avatarUrl = avatarUrl;
    }

    public String getAvatarUrl() 
    {
        return avatarUrl;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setUserStatus(Long userStatus) 
    {
        this.userStatus = userStatus;
    }

    public Long getUserStatus() 
    {
        return userStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("openid", getOpenid())
            .append("nickname", getNickname())
            .append("avatarUrl", getAvatarUrl())
            .append("phone", getPhone())
            .append("userStatus", getUserStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
